package com.zsinfo.guoss.supplier.logichelper;

import com.example.netcenter.bean.RegisterBean;
import com.zsinfo.guoss.supplier.utils.SharedPreferencesUtil;

public class LoginAndRegisterHelper {

    public void SaveInfo(RegisterBean registerBean) {

        RegisterBean.DataBean.SupplierBean supplierBean = registerBean.getData().getSupplier();
        SharedPreferencesUtil.setToken(registerBean.getData().getTokenID());
        SharedPreferencesUtil.setSecretKey(registerBean.getData().getSecretKey());
        SharedPreferencesUtil.setWebsiteNode(supplierBean.getWebsiteNode());
        SharedPreferencesUtil.setWebsiteName(supplierBean.getWebsiteName());
        SharedPreferencesUtil.setfirmName(supplierBean.getName());
        SharedPreferencesUtil.setFirmMobile(supplierBean.getMobile());
        SharedPreferencesUtil.setPassword(supplierBean.getPassword());
        SharedPreferencesUtil.setFaceImg(supplierBean.getFaceImg());
        SharedPreferencesUtil.setALiName(supplierBean.getALiName());
        SharedPreferencesUtil.setALiCount(supplierBean.getALiCount());
        SharedPreferencesUtil.setID(supplierBean.getId());
        SharedPreferencesUtil.setIsLogin(true);  //已经登录了

    }


}
